import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import '../controllers/splash_controller.dart';

class SplashView extends GetView<SplashController> {
  const SplashView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: Stack(
        children: [
          Center(
            child: Obx(() => controller.isLoading.value
                ? const SizedBox.shrink()
                : const SizedBox.shrink()),
          ),
          Positioned(
            bottom: 45.h,
            left: 0,
            right: 0,
            child: Center(
              child: Image.asset(
                'assets/images/app_logo.webp',
                width: 140.w,
              ),
            ),
          ),
        ],
      ),
    );
  }
}
